<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style >
			.earthrotate{
				width: 250px;
				height: 250px;
				background-image: url(user.png);
				border-radius: 155px;
				
				/*创建动画，设置参数
				  速度不均匀，造成前快后慢  +参数linear，速度均匀
				*/
				animation: run 6s linear infinite;
				/*设置坐标系*/
				position: relative;
			}
			/*设置关键帧run
			  变形（形状变化）tranform
			  rotate 旋转 0deg，从0度开始旋转
			*/
			@keyframes run{
				from{
					transform: rotate(0deg);
					left:0px;
				}
				to{
					transform: rotate(360deg);
					left:700px;
					}
			}
			.earthrotate:hover{
				/*鼠标移入，地球暂停，移出，继续旋转
				  play-state：状态    pause：停止
				*/
			   animation-play-state: paused;
			}
		</style>
	</head>
	<body>
		<h3>地球旋转动画效果</h3>
		<div class="earthrotate">
			
		</div>
	</body>
</html>
